﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WebService.IRepository;
using WebService.IServices;
using WebService.Services.Base;

namespace WebService.Services
{
    public class MenuServices : BaseServices<Sys_Menu>, IMenuServices
    {
        private IMenuRepository menu;
        public MenuServices(IMenuRepository _menu)
        {
            menu = _menu;
            BaseDal = menu;
        }

        public async Task<List<Sys_Menu>> FindByUser(string userName)
        {
            return await menu.FindByUser(userName);
        }
    }
}
